package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ATipsMapper;
import com.ruoyi.system.domain.ATips;
import com.ruoyi.system.service.IATipsService;

/**
 * 提示Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-09
 */
@Service
public class ATipsServiceImpl implements IATipsService 
{
    @Autowired
    private ATipsMapper aTipsMapper;

    /**
     * 查询提示
     * 
     * @param id 提示主键
     * @return 提示
     */
    @Override
    public ATips selectATipsById(Long id)
    {
        return aTipsMapper.selectATipsById(id);
    }

    /**
     * 查询提示列表
     * 
     * @param aTips 提示
     * @return 提示
     */
    @Override
    public List<ATips> selectATipsList(ATips aTips)
    {
        return aTipsMapper.selectATipsList(aTips);
    }

    /**
     * 新增提示
     * 
     * @param aTips 提示
     * @return 结果
     */
    @Override
    public int insertATips(ATips aTips)
    {
        aTips.setCreateTime(DateUtils.getNowDate());
        return aTipsMapper.insertATips(aTips);
    }

    /**
     * 修改提示
     * 
     * @param aTips 提示
     * @return 结果
     */
    @Override
    public int updateATips(ATips aTips)
    {
        aTips.setUpdateTime(DateUtils.getNowDate());
        return aTipsMapper.updateATips(aTips);
    }

    /**
     * 批量删除提示
     * 
     * @param ids 需要删除的提示主键
     * @return 结果
     */
    @Override
    public int deleteATipsByIds(Long[] ids)
    {
        return aTipsMapper.deleteATipsByIds(ids);
    }

    /**
     * 删除提示信息
     * 
     * @param id 提示主键
     * @return 结果
     */
    @Override
    public int deleteATipsById(Long id)
    {
        return aTipsMapper.deleteATipsById(id);
    }
}
